/**
 * Created by Administrator on 2016/1/7.
 */
$(function(){
    $(document).on("pageshow","#game_html",function(){
        var $p = $("#game_html");
        var showId = purl().fparam("id");
        var url = purl().fparam("url");
        var $content = $p.find("#content");
        $content.html($p.find("#"+showId).html());
        $content.css({
            left:$(window).width()/2 - $content.width()/2,
            top:250
        });

        var $audio = $("#audioPlayer");
        $audio.attr("src",url);
        $audio.attr("loop","loop");
        $audio[0].play();
    })
})